using System;
using System.Collections;

namespace Com.CMS263.PO
{
	#region Peixun

	/// <summary>
	/// Peixun object for NHibernate mapped table 'Peixun'.
	/// </summary>
	public class Peixun
	{
		#region Member Variables
		
		protected int _id;
		protected string _userName;
		protected string _userEmail;
		protected string _userLink;
		protected string _nDSF;
		protected string _hJTZ;
		protected string _gXQ;
		protected string _ask;
		protected bool _isRead;
		protected bool _isCheck;
		protected DateTime _addDate;

		#endregion

		#region Constructors

		public Peixun() { }

		public Peixun( string userName, string userEmail, string userLink, string nDSF, string hJTZ, string gXQ, string ask, bool isRead, bool isCheck, DateTime addDate )
		{
			this._userName = userName;
			this._userEmail = userEmail;
			this._userLink = userLink;
			this._nDSF = nDSF;
			this._hJTZ = hJTZ;
			this._gXQ = gXQ;
			this._ask = ask;
			this._isRead = isRead;
			this._isCheck = isCheck;
			this._addDate = addDate;
		}

		#endregion

		#region Public Properties

		public virtual int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public  virtual string UserName
		{
			get { return _userName; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserName", value, value.ToString());
				_userName = value;
			}
		}

		public  virtual string UserEmail
		{
			get { return _userEmail; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserEmail", value, value.ToString());
				_userEmail = value;
			}
		}

		public  virtual string UserLink
		{
			get { return _userLink; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for UserLink", value, value.ToString());
				_userLink = value;
			}
		}

		public  virtual string NDSF
		{
			get { return _nDSF; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for NDSF", value, value.ToString());
				_nDSF = value;
			}
		}

		public  virtual string HJTZ
		{
			get { return _hJTZ; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for HJTZ", value, value.ToString());
				_hJTZ = value;
			}
		}

		public  virtual string GXQ
		{
			get { return _gXQ; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for GXQ", value, value.ToString());
				_gXQ = value;
			}
		}

		public  virtual string Ask
		{
			get { return _ask; }
			set
			{
				if ( value != null && value.Length > 4000)
					throw new ArgumentOutOfRangeException("Invalid value for Ask", value, value.ToString());
				_ask = value;
			}
		}

		public  virtual bool IsRead
		{
			get { return _isRead; }
			set { _isRead = value; }
		}

		public  virtual bool IsCheck
		{
			get { return _isCheck; }
			set { _isCheck = value; }
		}

		public  virtual DateTime AddDate
		{
			get { return _addDate; }
			set { _addDate = value; }
		}

		

		#endregion
	}
	#endregion
}